﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Collections;



namespace NBFWcfService
{
    // 注意: 如果更改此处的类名 "TrackRemindService"，也必须更新 Web.config 中对 "TrackRemindService" 的引用。
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class TrackRemindService : ITrackRemindService
    {
        NBFBLL.TrackRemindBLL trbll = new NBFBLL.TrackRemindBLL();
        public void DoWork()
        {
        }

        #region ITrackRemindService 成员


        [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "POST")]
        public DataTable GetHistoryByID(Hashtable ht)
        {
            string userid = ht["userid"].ToString();
            string start = ht["start"].ToString();
            string end = ht["end"].ToString();
            string productnumber = ht["productnumber"].ToString();
            return trbll.GetHistoryByID(userid, start, end, productnumber); 
        }


        [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "POST")]
        public bool UpdateIsRead(string guid)
        {
            return trbll.UpdateIsRead(guid) ;
        }

        #endregion
    }

    
}
